/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023.
 * Description: add user exception feature support
 * Author: Abbott Liu <liuwenliang@huawei.com>
 * Create: 2023-09-04
 */

#ifndef __IRQ_LINEAR_H__
#define __IRQ_LINEAR_H__
#include <linux/types.h>

#if defined(CONFIG_RTOS_HAL_LINEAR_MAP) || defined(CONFIG_RTOS_HAL_MBIGEN_LEVEL_SENSITIVE_BUGFIX)
#define HI1382_VIRQ_NUMS	9100
#define HI1382_LPI_SPI_DIFF	7168
#define HI1382_HERT_IPI_MIN	5
#define HI1382_SPI_HWIRQ_MAX	1020
struct mbigen_info {
	u32 virq;
	u32 mask;
	void __iomem *vaddr;
};
#endif

#ifdef CONFIG_RTOS_HAL_LINEAR_MAP
#define ITS_HWIRQ_BASE_MASK ~((1ULL << 32) - 1)
#define MSI_IRQ_BASE 32768
#endif

#endif	/* __IRQ_LINEAR_H__ */
